package event;

/**
 * 消息事件
 */
public abstract class MessageEvent {

    private MessageEventType type;

    private String message;

    public MessageEvent(MessageEventType type, String message) {
        this.type = type;
        this.message = message;
    }

    public MessageEvent(MessageEventType type) {
        this.type = type;
    }

    public MessageEventType getType() {
        return type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
